<div class="span3">
    <div class="well sidebar-nav">
        <ul class="nav nav-list">
            <li class="nav-header">Sidebar</li>
            <?php foreach ($models as $model): ?>
            <li <?php echo isset($_GET['nickname']) && $_GET['nickname'] == $model['nickname'] ? 'class="active"' : ''; ?>>
                <?php echo CHtml::link($model['name'], array('/' . $model['type'] . '/index', 'nickname' => $model['nickname'])); ?>
            </li>
            <?php endforeach; ?>            
        </ul>
    </div><!--/.well -->
</div><!--/span-->